//
//  HJVideoControllView.h
//  project
//
//  Created by yefei on 2019/7/20.
//  Copyright © 2019 健健. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GKSliderView.h"
#import "HJVideoModel.h"

@interface HJVideoItemButton : UIButton

@end


NS_ASSUME_NONNULL_BEGIN
@class HJVideoControllView,HJVideoModel,HJVideoItemButton;

@protocol HJVideoControlViewDelegate <NSObject>

/**
 点击头像按钮
 @param controlView self
 */
- (void)controlViewDidClickIcon:(HJVideoControllView *)controlView;
/**
 @param controlView self
 */
- (void)controlViewDidClickSelf:(HJVideoControllView *)controlView;

/**
 评论按钮点击事件
 @param controlView self
 */
- (void)controlViewDidClickComment:(HJVideoControllView *)controlView;

/**
 关注
 @param controlView  self
 */
-(void)controlViewDidClickAttention:(HJVideoControllView *)controlView videoModel:(HJVideoModel * _Nonnull)videoModel;

/**
 分享按钮点击事件
 @param controlView self
 */
- (void)controlViewDidClickShare:(HJVideoControllView *)controlView;
// 屏幕点击
- (void)controlView:(HJVideoControllView *)controlView touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;

@end

@interface HJVideoControllView : UIView

@property (nonatomic, strong) HJVideoModel *model;

/**
 UI控件代理
 */
@property (nonatomic, weak) id<HJVideoControlViewDelegate> delegate;
/**
 视频封面图:显示封面并播放视频
 */
@property (nonatomic, strong) UIImageView *coverImgView;

/**
 进度条
 */
@property (nonatomic, strong) GKSliderView *sliderView;
/**
 评论
 */
@property (nonatomic, strong) HJVideoItemButton *commentBtn;

-(void)setCommentCount:(NSString *)count;
/**
 关注按钮显示与隐藏
 */
- (void)setConcern:(BOOL)concern;

/**
 设置进度
 @param progress 进度
 */
- (void)setProgress:(float)progress;
/**
 开始播放
 */
- (void)startLoading;
/**
 暂停播放
 */
- (void)stopLoading;
/**
 点赞
 */
- (void)showLikeAnimation;
/**
 取消点赞
 */
- (void)showUnLikeAnimation;

/**
 显示暂停按钮
 */
- (void)showPlayBtn;

/**
 隐藏暂停按钮
 */
- (void)hidePlayBtn;

@end

NS_ASSUME_NONNULL_END
